﻿using System;
using System.Linq;
using IFDB.Models.Contexts;
using IFDB.Models.Tables;

namespace IFDB.ViewModels.PartialViewModels
{
    public class SeasonViewModel
    {
        public Season GetSeason(string seasonId)
        {
            Guid id = new Guid(seasonId);

            using (IFDBContext db = new IFDBContext())
                return db.Seasons.Single(s => s.SeasonId == id);
        }
    }
}
